package com.community.entity;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.feng.fengDUtil.dao.annotation.Id;
import com.feng.fengDUtil.dao.annotation.Table;
import lombok.Data;

import java.util.Date;

@Data
@Table("a_user")
public class Student {

    @Id(Id.IdType.uuid)
    private String id;

	/**createDate*/
	private Date create_date;
	/**姓名*/
	private String name;
	/**password*/
	private String password;
	/**updateDate*/
	private Date update_date;
	/**用户名*/
	private String username;
	/**会员等级*/
	private Integer vip_level;
	/**性别*/
	private Integer sex;
	/**高考年份*/
	private String year;
	/**学校*/
	private String school_name;
	/**我的名次*/
	private Integer rankNum;
	/**物理*/
	private Integer score_wl;
	/**化学*/
	private Integer score_hx;
	/**生物*/
	private Integer score_sw;
	/**技术*/
	private Integer score_js;
	/**scoreLs*/
	private Integer score_ls;
	/**思想政治*/
	private Integer score_sxzz;
	/**语文*/
	private Integer score_yw;
	/**数学*/
	private Integer score_sx;
	/**外语*/
	private Integer score_wy;
	/**选考科目*/
	private String select_subject;
	/**总分*/
	private Integer score_total;
	/**手机号码*/
	private String phone;

	/**openId*/
	private String open_id;

	/**注册方式*/
	private String reg_type;

	/**isModify*/
	private Integer is_modify;

	/**会员验证码*/
	private String default_vip;

	/**假删除标识符*/
	private Integer delete_flag;

	/**录取早知道*/
	private String matriculate_id;

	/**录取早知道付款识别*/
	private Integer matriculate_vip;

	private String testCharacter;
	private String testInterest;

	@JsonProperty
	public String[] getSubjects(){
		if(select_subject!=null){
			return select_subject.split(",");
		}else{
			return new String[]{};
		}
	}
}
